#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-09-03 11:36 上午
# @Author  : yangdy
# @File    : 2020-09-02.剑指Offer20.表示数值的字符串
# @Software: PyCharmCE
class Solution:
    def isNumber(self, s: str) -> bool:
        try:
            float(s)
        except ValueError:
            return False
        return True
